package exception;

/**
 * @since Oct 21, 2017
 */
public class Finally {

    public static String test() {
        try {
            throw new Exception();
        } catch (Exception e) {
            return "catch";
        } finally {
            return "finally";
        }
    }

    public static void main(String[] args) {
        //[out]: finally
        //[reason]: finally statement must execute
        System.out.println(test());
    }
}
